﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Manage_logList : System.Web.UI.Page
{
    BLL.LogBll lb = new BLL.LogBll();

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindData();
        }
    }

    private void BindData()
    {
        DataTable table = lb.GetLog();
        grd_Log.DataSource = table;
        grd_Log.DataBind();
    }
    protected void grd_Log_SelectedIndexChanged(object sender, EventArgs e)
    {

    }
    protected void grd_Log_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        grd_Log.PageIndex = e.NewPageIndex;
        BindData();
    }
}
